$(function(){  
   // $("tbody>tr:odd").addClass("odd");   //为奇数行添加样式  
   // $("tbody>tr:even").addClass("even"); //为偶数行添加样式  
    $(".cz-box").mouseover(function(){      //鼠标移动的高亮显示  
        $(this).addClass("bg");  
    }).mouseout(function(){  
        $(this).removeClass("bg");  
    });  
});

function menusel(left_menusel){
	document.getElementById(left_menusel).className="leftmenu-sel";
	document.getElementById(left_menusel).setAttribute("className","leftmenu-sel");
}

function currentMenu(currmenu){
	document.getElementById(currmenu).className="current";
	document.getElementById(currmenu).setAttribute("className","current");
}

function getObj(id){
	return document.getElementById(id);
}

String.prototype.trim=function(){
	return this.replace(/(^\s*)|(\s*$)/g,"");
}

/**
* 组合，将不同网站的同一条内容做组合
*/
function combination1(){
	jBox.open('iframe-jBoxID','iframe','/chose.html','信息组合','width=700,height=300,center=true,minimizable=true,resize=true,draggable=true,model=true,scrolling=true');
}

/**
* 组合，将不同网站的同一条内容做组合
*/
function combination(){
	var chose = document.getElementsByName("chose");
	var ids = "";
	for(var i=0; i<chose.length; i++){
		if(chose[i].checked){
			ids += chose[i].id+",";
		}
	}
	jBox.open('iframe-jBoxID','iframe','/admin/info/dataJoin?ids='+ids,'信息组合','width=700,height=300,center=true,minimizable=true,resize=true,draggable=true,model=true,scrolling=true');
}

/**
 * 获取URL参数
 * @return
 */
 function getArgs( ) {
     var args = new Object( );
     var query = location.search.substring(1);      // Get query string
     var pairs = query.split("&");                  // Break at ampersand
     for(var i = 0; i < pairs.length; i++) {
         var pos = pairs[i].indexOf('=');           // Look for "name=value"
         if (pos == -1) continue;                   // If not found, skip
         var argname = pairs[i].substring(0,pos); // Extract the name
         var value = pairs[i].substring(pos+1);     // Extract the value
         value = decodeURIComponent(value);         // Decode it, if needed
         args[argname] = value;                     // Store as a property
     }
     return args;                                   // Return the object
}